package com.bojiu.lawsearch.lawsearch.util;

public class Constances {
    //-------------------------微信相关--------------------------------------
    //开放平台的账号信息
    public static String APPID = "wx8eedf1ad478a9c2c";

    public static String APPSECRET = "5683fa77166018b0d3dc677f62145dc4";

    public static String COMPONENT_APPID = "wx19423e98469bfc49";

    public static String COMPONENT_APPSECRET = "b72015c3404e8a73dd383426557d759d";


    /**
     * 网页扫码登录链接
     * 参数：appid   redirectUrl
     */
    public static String WEBLOGIN_URL = "https://open.weixin.qq.com/connect/qrconnect?" +
            "appid=%s" +
            "&redirect_uri=%s" +
            "&response_type=code&scope=snsapi_login&state=STATE#wechat_redirect";

    /**
     * 网页端获取微信access_token
     * 参数：appid   secret  code
     */
    public static String WEB_ACCESSTOKEN = "https://api.weixin.qq.com/sns/oauth2/access_token?" +
            "appid=%s" +
            "&secret=%s" +
            "&code=%s&grant_type=authorization_code";

    /**
     * 网页获取人员具体信息
     * 参数：accesstoken   openid
     */
    public static String WEB_USERINFO = "https://api.weixin.qq.com/sns/userinfo?" +
            "access_token=%s" +
            "&openid=%s&lang=zh_CN";



    /**
     * 获取code链接
     * 参数：appid  redirecturl
     */
    public static String CODE_URL = "https://open.weixin.qq.com/connect/oauth2/authorize?" +
            "appid=%s" +
            "&redirect_uri=%s" +
            "&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect";

    /**
     * 获取openid链接
     * 参数：appid  secret  code
     */
    public static String OPENID_URL = "https://api.weixin.qq.com/sns/oauth2/access_token?" +
            "appid=%s" +
            "&secret=%s" +
            "&code=%s&grant_type=authorization_code";

    /**
     * 获取用户明细
     * 参数：access_token     openid
     */
    public static String USERINFO_URL = "https://api.weixin.qq.com/sns/userinfo?access_token=%s&openid=%s&lang=zh_CN";


    public static String USER_INDEX_URL = "http://www.qiangui51.cn/legal/index";

    public static String GZ_INDEX_HTML = "http://www.qiangui51.cn/legal/regist";

    public static String GZ_RESULT_HTML = "http://www.qiangui51.cn/legal/result";

    public static String GZ_SHARE_HTML = "http://www.qiangui51.cn/legal/spread";



    //-----------------------------文件相关-------------------------------
    public static String STORE_URL = "/opt/file/";

    public static String WEB_URL = "http://139.129.242.100:8071/lawsearch/";

//    public static String STORE_URL = "E:/test/lawsearch/file/";
//
//    public static String WEB_URL = "http://localhost:8071/lawsearch/";

    public static String SPLIT_MARK = "\\$bj";

    //-----------------------------跳转页面-------------------------------
    public static String INDEX_URL = "";


    //用户权限
    public static String ADMIN = "admin";
    public static String USER = "user";
    public static String ALL = "admin,user";



    //-----------------------------获取系统设置---------------------------------
    //提问价格
    public static String QUESTION_PRICE = "question_price";
    //1元等于多少积分
    public static String SCORE_TO_PRICE = "scoreToPrice";
    //获取问题是否自动匹配发布
    public static String AUTO_PUBLISH = "autoPublish";
    //下家消费，上家获得分成的比例
    public static String USER_PROPORTION = "user_proportion";
    //下家消费，工程师获得分成的比例
    public static String ENGINEER_PROPORTION = "engineer_proportion";
    //回答问题工程师的抽成
    public static String ANSWER_QUESTION_PROPORTION = "answer_question_proportion";



    //---------------------------------------------------余额已经积分的历史记录的操作说明，即用途
    public static String LOG_QUESTION_TYPE = "question";
    public static String LOG_FEE_TYPE = "充值余额";


    //------------------------------------------微信支付body说明---------------------------------------------
    //微信支付说明
    public static String QUESTION_BODY = "企安规-发布提问任务";
    public static String MEMBER_BODY = "企安规-开通会员";
    public static String FEE_BODY = "企安规-充值余额";



    //发送短信
    //模板id  您的注册验证码：{1}，企安规：注册手机账号后，电脑登陆可微信扫码进入主页，网址：www.qiangui51.cn
    public static int MODELID = 563203;
    //短信appid
    public static int MSG_APPID = 1400338638;
    //发送短信请求链接
    public static String MSG_URL = "https://sms.tencentcloudapi.com/?";

}
